/*********************************************************
          File Name:10.34.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 14 Mar 2016 08:39:23 PM CST
**********************************************************/

#include <iostream>
#include <vector>
#include <algorithm>

int main()
{
    std::vector<int> vi{1, 2, 3, 4, 5};
    std::for_each(vi.crbegin(), vi.crend(), [](const int x) { std::cout << x << ' '; });
    std::cout << '\n';
    return 0;
}
